home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Hyper / Hyperj-Hz / HyperTest.cpt / HyperTest / HyperTest / card_3677.txt < prev    next >
Encoding:
Text File  |  1988-04-16  |  12.7 KB  |  355 lines

  1. -- card: 3677 from stack: in
  2. -- bmap block id: 4370
  3. -- flags: 4000
  4. -- background id: 3126
  5. -- name: Help
  6. ----- HyperTalk script -----
  7.  
  8. on deletecard
  9.   distmsg
  10. end deletecard
  11.  
  12. on choose what,how
  13.   if what is not "browse" and how is not "1" then
  14.     put "If you edit anything, please do not distribute this stack."
  15.     wait 3  seconds
  16.     put "Type ‚ÄúQuiet!‚Äù to get rid of this distribution message."
  17.   end if
  18.   pass choose
  19. end choose
  20.  
  21. on edit
  22.   distmsg
  23. end edit
  24.  
  25. on newbutton
  26.   distmsg
  27. end newbutton
  28. on newfield
  29.   distmsg
  30. end newfield
  31. on domenu what
  32.   if what is "Card Info..." then
  33.     distmsg
  34.   end if
  35.   pass domenu
  36. end domenu
  37. on distmsg
  38.   exit distmsg
  39.   put"Unless you undo your last action, please don't distribute this stack."
  40.   wait 3 seconds
  41.   put"Type ‚ÄúQuiet‚Äù to geta rid of these distribution messages."
  42. end distmsg
  43.  
  44.  
  45.  
  46.  
  47. -- part 4 (button)
  48. -- low flags: 00
  49. -- high flags: A003
  50. -- rect: left=192 top=298 right=319 bottom=315
  51. -- title width / last selected line: 0
  52. -- icon id / first selected line: 0 / 0
  53. -- text alignment: 1
  54. -- font id: 0
  55. -- text size: 12
  56. -- style flags: 0
  57. -- line height: 16
  58. -- part name: Install HyperTest
  59. ----- HyperTalk script -----
  60. on mouseUp
  61.   answer"Install the HyperTest button home?" with "Okay" or "Nah"
  62.   if it is "Nah" then exit mouseup
  63.   get the short name of this stack
  64.   put it into StackName
  65.   visual effect barn door close
  66.   go home
  67.   set the lockscreen to true
  68.   set the cursor to 4
  69.   domenu"New Button"
  70.   set the name of last button to "HyperTest"
  71.   set the AutoHilite of button "HyperTest" to true
  72.   set the icon of button "HyperTest" to 1020
  73.   set the ShowName of button "HyperTest" to true
  74.   set the style of button "HyperTest" to transparent
  75.   set the rect of button "HyperTest" to 206,140,276,190
  76.   put "on mouseup"&return into script
  77.   put"visual effect barn door open"&return after script
  78.   put"go to stack"&"e&stackname"e&return after script
  79.   put"end mouseup"&return after script
  80.   set the script of button "HyperTest" to script
  81. end mouseUp
  82.  
  83.  
  84.  
  85. -- part 9 (button)
  86. -- low flags: 00
  87. -- high flags: A003
  88. -- rect: left=98 top=299 right=321 bottom=184
  89. -- title width / last selected line: 0
  90. -- icon id / first selected line: 0 / 0
  91. -- text alignment: 1
  92. -- font id: 0
  93. -- text size: 12
  94. -- style flags: 0
  95. -- line height: 16
  96. -- part name: Initialize
  97. ----- HyperTalk script -----
  98. on mouseUp
  99.   if the number of cards<4 then
  100.     put"Sorry, but this stack seems to be missing some cards. Please do not"
  101.     wait 1 second
  102.     put"distribute it."
  103.     exit mouseup
  104.   end if
  105.   put the userlevel into user
  106.   set the userlevel to 5
  107.   if the userlevel <> 5 then
  108.     put"Please unprotect this stack first."
  109.     exit mouseup
  110.   end if
  111.   if card field"password" of last card is not empty then
  112.     ask password"What is the teacher password?"
  113.     if it is not card field"password" of last card then
  114.       answer"Only the teacher may initialize the stack."
  115.       exit mouseup
  116.     end if
  117.   end if
  118.   show msg box
  119.   set lockscreen to true
  120.   set the lockmessages to true
  121.   set the lockrecent to true
  122.   put "Deleting all cards except the first and last..."
  123.   if the number of cards > 4 then
  124.     repeat with i = 2 to the number of cards-3
  125.       go to card i
  126.       domenu"Delete Card"
  127.     end repeat
  128.   end if
  129.   put"Initializing teacher card..."
  130.   put empty into card field"password" of last card
  131.   put empty into card field "test" of last card
  132.   put empty into field"help" of last card
  133.   put empty into card field"required tests" of last card
  134.   go card 1
  135.   hide card field "Quiet!"
  136.   if card field "Quiet!" is true then
  137.     put"Un-‚ÄúQuieting‚Äù the stack."
  138.     put "false" into card field "Quiet!"
  139.     put the script of this card into script
  140.     put offset("exit choose",script) into off
  141.     delete char off to off+12 of script
  142.     put offset ("pass choose",script) into off
  143.     delete char off to off+11 of script
  144.     repeat 4 times
  145.       set the script of this card to script
  146.       go next card
  147.     end repeat
  148.   end if
  149.   put"Initializing test cards..."
  150.   go to card 1
  151.   put "Trivia Quiz" into field"TestName"
  152.   go to card 2
  153.   put empty into field"TestName"--Sorry, I hadn‚Äôt realized the
  154.   put empty into field"Test Name"--similarity. The top line is the file
  155.   go to card "Help"              --name, and the bottom is the name
  156.   put"Compacting stack..."       --displayed at the top of a test card.
  157.   domenu"Compact Stack"
  158.   put "This stack may now be distributed."
  159.   set the userlevel to user
  160. end mouseUp
  161.  
  162.  
  163.  
  164. -- part 19 (button)
  165. -- low flags: 00
  166. -- high flags: 2000
  167. -- rect: left=49 top=36 right=55 bottom=81
  168. -- title width / last selected line: 0
  169. -- icon id / first selected line: 1009 / 1009
  170. -- text alignment: 1
  171. -- font id: 0
  172. -- text size: 12
  173. -- style flags: 0
  174. -- line height: 16
  175. -- part name: Create Test
  176. ----- HyperTalk script -----
  177. on mouseUp
  178.   global allow
  179.   if card field "password" of last card is empty then
  180.     put true into allow
  181.     ask password"Please choose a teacher password:"
  182.     if it is empty then
  183.       put false into allow
  184.       exit mouseup
  185.     end if
  186.     go last card
  187.     put it into card field"password"
  188.     exit mouseup
  189.   else
  190.     ask password"What‚Äôs the password?"
  191.     if it is empty then exit mouseup
  192.     if it is not card field"password" of last card then
  193.       answer"Nope! Sorry..."
  194.       exit mouseup
  195.     end if
  196.     put true into allow
  197.   end if
  198.   visual effect dissolve
  199.   go last card
  200. end mouseUp
  201.  
  202.  
  203.  
  204.  
  205. -- part 20 (field)
  206. -- low flags: 01
  207. -- high flags: 0001
  208. -- rect: left=286 top=27 right=59 bottom=445
  209. -- title width / last selected line: 0
  210. -- icon id / first selected line: 0 / 0
  211. -- text alignment: 0
  212. -- font id: 2
  213. -- text size: 24
  214. -- style flags: 0
  215. -- line height: 32
  216. -- part name: 
  217.  
  218.  
  219. -- part 21 (button)
  220. -- low flags: 00
  221. -- high flags: 2001
  222. -- rect: left=9 top=35 right=63 bottom=42
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 20098 / 20098
  225. -- text alignment: 1
  226. -- font id: 0
  227. -- text size: 12
  228. -- style flags: 0
  229. -- line height: 16
  230. -- part name: Home
  231. ----- HyperTalk script -----
  232. on mouseUp
  233.   visual effect dissolve
  234.   go home
  235. end mouseUp
  236.  
  237.  
  238.  
  239. -- part 23 (button)
  240. -- low flags: 00
  241. -- high flags: A003
  242. -- rect: left=325 top=297 right=319 bottom=425
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 0 / 0
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: Find
  251. ----- HyperTalk script -----
  252. on mouseUp
  253.   domenu"Find..."
  254. end mouseUp
  255.  
  256.  
  257.  
  258. -- part 24 (button)
  259. -- low flags: 00
  260. -- high flags: 2000
  261. -- rect: left=51 top=301 right=323 bottom=90
  262. -- title width / last selected line: 0
  263. -- icon id / first selected line: 30557 / 30557
  264. -- text alignment: 1
  265. -- font id: 0
  266. -- text size: 12
  267. -- style flags: 0
  268. -- line height: 16
  269. -- part name: New Button
  270. ----- HyperTalk script -----
  271. on mouseUp
  272.   visual effect iris close
  273.   go first card
  274. end mouseUp
  275.  
  276.  
  277.  
  278. -- part 26 (field)
  279. -- low flags: 81
  280. -- high flags: 0000
  281. -- rect: left=156 top=120 right=205 bottom=356
  282. -- title width / last selected line: 0
  283. -- icon id / first selected line: 0 / 0
  284. -- text alignment: 0
  285. -- font id: 3
  286. -- text size: 12
  287. -- style flags: 0
  288. -- line height: 16
  289. -- part name: Notes
  290.  
  291.  
  292. -- part contents for background part 1
  293. ----- text -----
  294. Welcome to HyperTest version 5.5! This stack is a testing program. A teacher, parent, or even the student types in the test, and then the student can take it. Has MANY features, more than even a pencil and paper test.
  295. First, the student instructions:
  296. The student opens up HyperTest by double-clicking on it‚Äôs icon in the FInder. Then you are confronted with a test card. The name of the test is at the top. If this is the first time you are using HyperTest, the words ‚ÄúTrivia Quiz‚Äù should be at the top. IF A DIALOG BOX, sthe standard ‚ÄúOpen‚Äù dialog box, appears, show HyperTest where the file Trivia Quiz is. This dialog box will not come up if you have Trivia Quiz in the same folder as HyperCard, however. HyperTest will remember where Trivia Quiz is, until you change tests.
  297. Say you opened up HyperTest, and you wanted to take a different test that you had already made. You would then click in the small button icon (on the right of the eye on the left side of the screen.) HyperTest will ask you if you wanbt to change tests, and then ask you where the new test is. You will then be ready to take the test. Click in ‚ÄúTest Me!‚Äù to begin the test.
  298. The teacher has the priviledge to make a certain test ‚Äúrequired‚Äù. That means that when you load up HyperTest, it will go straight to a certain test and automatically click ‚ÄúTest Me!‚Äù If you try to leave, the teacher will be informed.
  299. Teacher instructions:
  300. The ‚Äúteacher‚Äù is whoever gets to the teacher card first, so I suggest that thre real teacher go there as soon as you finish reading these instructions. To get to the teacher card, click on the eye icon anywhere inside HyperTest. HyperTest will ask you what the password is, or, if none exists, will ask you t make up a password. REMEMBER THIS PASSWORD, so that you can get in to the teacher card in the future. You can change the password by clicking on Bill in the teacher card.
  301. Once in the teacher card, you have a number of options. But first, I should explain the format of the test.
  302. You type in the test into that big field. The first line should be whatever you want to call the test. That is not necesarily the file name. That is what appears at the top of the test screen.
  303. After that, you alternate question, answer. For example, the first thre lines of a quiz could look like this:
  304.  
  305. Science Quiz‚ÄîChapter 10
  306. What are xylem?
  307. Tubes in a tree that transport water throughout the tree.
  308.  
  309. I admit‚Äîhow is a student going to know the exact wording of such a long answer as that? So, there is a multiple choice feature. In the answer line, you would type an M and then a space, and type in up to four answers (there can be fewer, but no more), seperated by commas. After your last answer, put a comma, and put the right answr. For example:
  310.  
  311. Science Quiz‚ÄîChapter 10
  312. What are xylem?
  313. M Little doo-dads,A new type of toy,Parts of a tree,Parts of a tree
  314.  
  315. There were three choices there. The last choice is always the answer. In most tests, not all questions are worth the same number of points. By default, each question in HyperTest is worth one point, but you can change that with the P (for points) command. For example (just the question and answer, this time):
  316.  
  317. P 10,What are xylem?
  318. Little doo-dads.
  319.  
  320. The question is worth 10 points, and in this case, the answer is ‚ÄúLittle doo-dads!‚Äù Notice the comma between the 10 and the What.
  321. Now, if you don‚Äôt understand this, don‚Äôt worry. There is a button at the bottom labelled Automate. Just click it, answer it‚Äôs questions, and it will form one of these questions for you.
  322. There is one mopre command, which ‚ÄúAutomate‚Äù can‚Äôt form. The hint command. To give somebody a hint: (N for note):
  323.  
  324. WHat are xylem?
  325. N They‚Äôre somewhere on a tree,Little doo-dads.
  326.  
  327. Notcie that you can‚Äôt have a comma in the hint, because that‚Äôs what seperates the hint from the answer. Notice here that the answer is ‚ÄúLittle doo-dads.‚Äù If you leave out the period, it is wrong. You CAN have something like this:
  328.  
  329. What are xylrm?
  330. N They‚Äôre neat!,M Little doo-dads,Space cadets,Parts of a tree,modems,Parts of a tree
  331.  
  332. The hint MUST go first, however.
  333. To save your test, click in ‚ÄúSave.‚Äù To load a test, click ‚ÄúLoad Test‚Äù
  334. Save can do two things. If you can see the test, then it will save the test. But if you can see the test scores (by clicking in Get Scores), it will save the scores. To clear the scores, press ‚ÄúClear Scores‚Äù.
  335. You can make a test ‚Äúrequired‚Äù ‚Äîeverybody has to take it‚Äîby clicking in ‚ÄúRequired Test‚Äù and doing what it asks you. To make a test non-required, edit the list and delete whatever it says in it. To hide the list, hold the option key down and click in ‚ÄúRequired Test.‚Äù
  336. The teacher has one more privledge. The teacher can  write a note to someone. You do this by clicking in ‚ÄúMake Note‚Äù. ANswer it‚Äôs questions, and then delete the top line of the field when you have read it. Type in your note, and click in ‚ÄúSend Note‚Äù. When the person who it was to tries to take a test, he will find himself in the help card, reading his note.
  337. Summary of icons:
  338. Left arrow : go to the previous card
  339. Right arrow: go to the next card
  340. left arrow with line: go to the first card
  341. The arrow at the upper-right hand corner of this card : go back to where you came from
  342. Eye: Go to the teacher card
  343. Home: Go to the home stack.
  344. I encourage you to re-distribute this, but please click ‚ÄúInitialize‚Äù on the copy that you‚Äôre going to give away, first. To install HyperTest into the Home stack, click ‚ÄúInstall HyperTest‚Äù.
  345. Please send comments and/or suggestions to my address:
  346. Tommy Brown
  347. 109-14 Ascan Ave.
  348. Forest Hills, NY, 11375
  349. GEnie: P.L.Cooper
  350. I can also be reached at: Metro Area Mac Users Group: (212) 597-9083
  351. I will be immensly happy if you send your comments.
  352.  
  353. -- part contents for card part 20
  354. ----- text -----
  355.  version 5.5